package month4.day10;

public class Yaokonqi {
    private String weight;
    private String scope;//范围
    private String color;
    public void start(Dianshi dianshi){
        System.out.println("开机");
        dianshi.start();
    }
    public void shutdown(Dianshi dianshi){
        System.out.println("关机");
        dianshi.shutdown();
    }
    public void trade(Dianshi dianshi){
        System.out.println("换台");
        dianshi.trade();
    }
    public int count() {
        try{
            return 5/0;
        } catch(Exception e){
            return 2*3;
        } finally {
            return 3;
        }
    }


    public Yaokonqi() {
    }

    public Yaokonqi(String weight, String scope, String color) {
        this.weight = weight;
        this.scope = scope;
        this.color = color;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
